﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace lcmyjobs.Web.enprise
{
    public partial class Show : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["rid"] != null && Request.Params["rid"].Trim() != "")
                {
                    string strid = Request.Params["rid"];
                    int enterprise_rid = (Convert.ToInt32(strid));
                    ShowInfo(enterprise_rid);
                }
            }
        }

        private void ShowInfo(int enterprise_rid)
        {
            lcmyjobs.BLL.enterprise_releasejob bll = new lcmyjobs.BLL.enterprise_releasejob();
            lcmyjobs.Model.enterprise_releasejob model = bll.GetModel(enterprise_rid);
            //this.lblenterprise_rid.Text = model.enterprise_rid.ToString();
            //this.lblenterprise_bid.Text = model.enterprise_bid.ToString();
            //this.lblenterprise_bh.Text = model.enterprise_bh;
            this.lbljobs_id.Text = model.jobs_id.ToString();
            this.lbljobclass.Text = model.jobclass;
            this.lblworkercount.Text = model.workercount.ToString();
            this.lbljobdep.Text = model.jobdep;
            this.lblsalarym.Text = model.salarym.ToString();
            //this.lblsalaryy.Text = model.salaryy.ToString();
            this.lblvalidity.Text = model.validity.ToString();
            this.lblworkerclass.Text = model.workerclass.ToString();
            this.lbledus_id.Text = model.edus_id.ToString();
            this.lblworkexp_id.Text = model.workexp_id.ToString();
            this.lbljobduty.Text = model.jobduty;
            this.lbljobrequirement.Text = model.jobrequirement;
            this.lblreleasetime.Text = model.releasetime.ToString();
            this.lblisuse.Text = model.isuse ? "是" : "否";
            this.lbllanguages_id.Text = model.languages_id.ToString();
            this.lblbcount.Text = model.bcount.ToString();
            this.lblisfrist.Text = (bool)model.isfrist ? "是" : "否";
            this.lblstatus.Text = model.status.ToString();

        }
    }


}